package com.huilian.iotbox.admin.wap;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.retry.annotation.EnableRetry;
import org.springframework.web.client.RestTemplate;

/**
 * @author 少凡
 * @date 2020/2/22 21:46
 */
@EnableRetry
@ComponentScan({"com.huilian"})
@MapperScan({"com.huilian.iotbox.admin.wap.dao","com.huilian.iotbox.admin.wap.activity.dao","com.huilian.iotbox.data.dao"})
@SpringBootApplication
public class AdminWapApplication {

    public static void main(String[] args) {
        SpringApplication.run(AdminWapApplication.class, args);
    }

    @Bean
    RestTemplate restTemplate(){
        return new RestTemplate();
    }
}


